//
//  ZCOrderViewModel.h
//  ZCJZ
//
//  Created by sujeking on 2019/2/28.
//  Copyright © 2019年 jeking. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SKWebServiceErrorCode.h"
@interface ZCOrderViewModel : NSObject

/// 确认订单信息
+ (void)confirmOrderWithInfo:(NSDictionary *)info
                    complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 提交订单
+ (void)commitOrderWithInfo:(NSDictionary *)info
                   complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 获取定制支付信息
+ (void)fetchOrderPayInfoWithOrderId:(NSString *)orderId
                            complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 支付
+ (void)postOrderPayInfoWithOrderSN:(NSString *)ordersn
                            payType:(NSString *)payType
                             paypwd:(NSString *)pwd
                          useWallet:(NSString *)useWallet
                           complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 获取订单列表
+ (void)fetchOrderListWithStatus:(NSInteger)status
                        pageSize:(NSInteger)pageSize
                      lastItemid:(NSString *)ids
                           keywd:(NSString *)keywd
                        complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 删除订单
+ (void)delOrderWithId:(NSString *)ids
              complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 取消订单
+ (void)canselOrderWithId:(NSString *)ids
                  causeId:(NSString *)causeId
                 complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 获取取消原因
+ (void)fetchOrderCanselResionWithComplete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 查询订单详情
+ (void)fetchOrderDetailWithOrderDict:(NSDictionary *)dict
                             complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 查询物流信息
+ (void)fetchLogisticsInfo:(NSString *)logisticsId
                 expressId:(NSString *)expressId
                  complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 确认收货
+ (void)confirmreceiptWithOrderId:(NSString *)orderId
                         complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

/// 识别地址
+ (void)autoCheckAddressWithString:(NSString *)address
                          complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;


/// 订单确认查询可用优惠券
+ (void)fetchGoodsCouponWithGoodsId:(NSString *)gid
                           cart_ids:(NSString *)cart_ids
                          goods_num:(NSString *)goods_num
                           complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;

///获取订单回执信息
+ (void)getOderReceiptWithOderNum:(NSString *)oderNum
                          complete:(void (^)(ZCErrorCode status, NSString *message,id data))block;
@end
